package com.xyg.exception;

import org.springframework.http.HttpStatus;

public class NotLoggedInException extends RuntimeException {

    private final HttpStatus httpStatus;

    public NotLoggedInException ( String message, HttpStatus httpStatus ) {
        super( message );
        this.httpStatus = httpStatus;
    }

    public HttpStatus getHttpStatus () {
        return httpStatus;
    }
}